package com.mc.general;

public class Tools {
	public static <T extends Comparable<T>> int compare(T a1,T a2){
		return a1.compareTo(a2);
	}
	public static <T> void exchange(int i,int j,T[] array){
		T temp = array[i];
		array[i]=array[j];
		array[j]=temp;
	}
}
